package com.niji.littly_donkey_android.view;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.FrameLayout;

public abstract class LoadingFrame extends FrameLayout {

    private Context mContext;

    private static final int LOADING = 1;//加载中
    private static final int LOADERROR = 2;//加载失败
    private static final int NETERROR = 3;//网络错误
    private static final int LOADED = 4;//加载完成
    private static final int NODATA = 5;//无数据可显示

    //当前的状态值，用于记录当前网络请求的状态
    private int currentState = LOADING;

    public LoadingFrame(Context context) {
        super(context);
        this.mContext = context;
    }

    public LoadingFrame(Context context, AttributeSet attrs) {
        super(context, attrs);
        this.mContext = context;
    }

    public LoadingFrame(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        this.mContext = context;
    }
}
